package com.sen.organization.enums;

import com.sen.common.common.inter.RespCodeEnum;

/**
 * @author esjiang
 */
public enum  MemberEnum implements RespCodeEnum {

    people_add_failed(700,"新增失败",Boolean.FALSE),
    people_not_exist(702,"人员不存在",Boolean.FALSE),
    people_account_not_exist(703,"人员账户信息不存在",Boolean.FALSE),

    add_department_failure(722,"部门名称或者编号已存在，请修改",Boolean.FALSE) ,


    people_is_exist(701,"人员已存在",Boolean.FALSE),
    super_admin_not_delete(704,"超管不能删除",Boolean.FALSE),
    project_team_leader_identity_exist(709,"身份证号已存在",Boolean.FALSE),
    ;

    private int code;
    private String message;
    private Boolean success;

    MemberEnum(int value, String text, Boolean success) {
        this.code = value;
        this.message = text;
        this.success = success;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return message;
    }

    @Override
    public boolean isSuccess() {
        return success;
    }
}
